<div class="navbar-submenu">
	<div class="container">
		<strong class='current_project' data-bind='text:project().name'></strong>
		<div class="btn-group btn-group-xs" data-bind="foreach:modes">
			<button type="button" class="btn" data-bind="
				text:name,
				css: {
					'btn-default': $parent.selectedMode().id != id,
					'btn-primary': $parent.selectedMode().id == id
				},
				click: $parent.selectMode
			"></button>
		</div>
		<!-- ko if:selectedMode().id == 'work' && user() !== null && all.users.getById(user().id()) != null -->
			<label class="only_my"><input type="checkbox" data-bind="checked:onlyMy"/> Показать только свои задачи</label>
		<!-- /ko -->
	</div>
</div>
<!-- Раздел "План" -->
<?php echo CHtml::hiddenField('data', $data); // выводим данные с сервера ?>
<div class="row">
	<!-- ko if:selectedMode().id == 'plan' -->
		<?php $this->renderPartial('_plan'); ?>
	<!-- /ko -->
	<!-- ko if:selectedMode().id == 'work' -->
		<?php $this->renderPartial('_work'); ?>
	<!-- /ko -->
	<!-- ko if:selectedMode().id == 'statistic' -->
		<?php $this->renderPartial('_statistic'); ?>
	<!-- /ko -->
</div>

<!-- Подключаем необходимые шаблоны -->
<?php $this->renderPartial('//_templates/issueInline'); ?>
<?php $this->renderPartial('//_templates/issueModal'); ?>
<?php $this->renderPartial('//_templates/chunkModal'); ?>